var stack = argument0;
//Stack<int[]> tempStack = new Stack<int[]>();
var tempStack = ds_stack_create();
//while (stack.Count != 0)
while(ds_stack_size(stack) != 0)
{
    //int[] temp = stack.Pop();
    var temp = ds_stack_pop(stack);
    //Console.WriteLine("{" + temp[0] + ", " + temp[1] + "}");
    show_debug_message(string(temp));
    //tempStack.Push(temp);
    ds_stack_push(tempStack, temp);
}
//while (tempStack.Count != 0)
while(ds_stack_size(tempStack) != 0)
{
    //int[] temp = tempStack.Pop(); ;
    //stack.Push(temp);
    ds_stack_push(stack, ds_stack_pop(tempStack));
}
ds_stack_destroy(tempStack);